package com.smfx.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smfx.yxt.daoSqlserver.VisitorAppointmentMapper;
import com.smfx.yxt.model.VisitorAppointment;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.service.IVisitorAppointmentService;
import com.smfx.yxt.view.VisitorAppointmentView;

@Service("visitorAppointmentService")
public class VisitorAppointmentServiceImpl implements IVisitorAppointmentService {

	@Autowired
	private VisitorAppointmentMapper visitorAppointmentMapper;
	
	@Override
	public int insertSelective(VisitorAppointment record) {
		return visitorAppointmentMapper.insertSelective(record);
	}

	@Override
	public VisitorAppointment selectByPrimaryKey(Integer id) {
		return visitorAppointmentMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(VisitorAppointment record) {
		return visitorAppointmentMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<VisitorAppointmentView> selectListByPage(Page<VisitorAppointmentView> page) {
		return visitorAppointmentMapper.selectListByPage(page);
	}

	@Override
	public VisitorAppointmentView selectViewById(Integer id) {
		return visitorAppointmentMapper.selectViewById(id);
	}

	@Override
	public VisitorAppointmentView selectCurrentVisited(Integer relId) {
		return visitorAppointmentMapper.selectCurrentVisited(relId);
	}

}
